package com.example.tools.common.base;

import javax.persistence.MappedSuperclass;
import java.util.List;

@MappedSuperclass
public abstract class BaseTreeEntity extends BaseEntity {

    private Integer parentId;


    private Integer orderId;

    public <T extends BaseEntity> T getParent() {
        return null;
    }

    public <T extends BaseEntity> List<T> getChildren() {
        return null;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
}
